let app = getApp()
Component({
    properties: {
 
      },
      data:{
        page:1,
        siteDomain:app.globalData.siteDomain
      },
    lifetimes: {
        attached: function () {
           this.setData({
            integral:wx.getStorageSync('userinfo').integral,
            globalColor:app.globalData.globalColor
           })
           this.get_data()
       }
      },
    methods: {
      get_data:function(){
        var that=this
         wx.request({
           url: app.globalData.siteroot,
           data: { 
             do:'Integralmall_getIntegralLog',
             page:that.data.page,
             user_id:wx.getStorageSync('user_id')
           },
           success: function(res) {
             that.setData({
              list:res.data.data
             })
             console.log(res.data)
           }
         })
        }
    
    }
});
